package com.lyw.container

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

class ContainerVm:ViewModel() {


   private var _index  = MutableLiveData(0)

    var index:LiveData<Int> = _index


    fun changeIndex(i:Int){
        _index.postValue(i)
    }
}